package com.aube.interact.fighter.model;

import com.aube.interact.fighter.R;

import java.io.Serializable;

public class VoteItemInfo implements Serializable
{
    /**
     * 注释内容
     */
    private int number;
    
    private String id;
    
    private String subject;
    
    private String status;

    public int colorRes= R.color.option_extra;
    
    public int getNumber()
    {
        return number;
    }
    
    public void setNumber(int number)
    {
        this.number = number;
    }
    
    public String getSubject()
    {
        return subject;
    }
    
    public void setSubject(String subject)
    {
        this.subject = subject;
    }
    
    public String getId()
    {
        return id;
    }
    
    public void setId(String id)
    {
        this.id = id;
    }
    
    public String getStatus()
    {
        return status;
    }
    
    public void setStatus(String status)
    {
        this.status = status;
    }

    public boolean isSelected() {
        return "1".equalsIgnoreCase(status);
    }

    public void updateNum(boolean add) {
        if(add)
            number++;
        else
            number--;
        if(number < 0)
            number = 0;
    }
    
}
